Day 3 - Showing the content of a file
18
Exercises
Printing the content of a file is pretty straightforward, but there are a couple of interesting tricks
that may come handy later, so these exercises will help you to discover them.
Exercise 3.01
Print the content of the file examples.txt numbering lines.
Go to solution
Exercise 3.02
Check if the file examples.txt contains spaces at the end of any line.
Go to solution
Cool, have a walk, enjoy some music, relax. From next lesson we will start to go a bit deeper into
Unix command line tricks, and I want you ready for the fight! Feel free to bring the cat along.
Suggested film for the evening: That Darn Cat! (1965) - A beginner Unix programmer has issues
with one of the simplest commands and involves the FBI in their struggle.